<?php
namespace Api\Controller;
use Think\Controller;
class ClubController extends Controller {
    
    public function getclublist(){
        $club=M('club');  
        $c=$club->select();    
        echo json_encode($c);  
    }

    public function getClubById(){
        $club=M('club');
        $clubid=$_GET['clubid'];   
        $c=$club->where("clubid='$clubid'")->find();    
        echo json_encode($c);   
    }
}
?>